﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BCGC.BLL.Helper;
using BCGC.BLL.BusinessObject.UserAccount;
using Jalal.Library.Utility;

public partial class Register : PublicBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Register_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            SiteUser user = new SiteUser();

            //try
            //{
            //    if (user.Register(Security.BindStringInput(tbxUsername.Text, SecurityLevel.Three),
            //        Security.BindStringInput(tbxPassword.Text, SecurityLevel.Three),
            //        Security.BindStringInput(tbxEmail.Text, SecurityLevel.Three),
            //        Security.BindStringInput(tbxSecretQuestion.Text, SecurityLevel.Three),
            //        Security.BindStringInput(tbxSecretAnswer.Text, SecurityLevel.Three)))
            //    {

            //    }
            //    else
            //        uccResponse.SetFailMessage("Failed To Create Account");
            //}
            //catch (Exception ex)
            //{
            //    uccResponse.SetFailMessage("Failed To Create Account");
            //}
        }
    }
}
